package com.tsll.service;

import com.tsll.entity.PurchaseInfo;
import com.tsll.vo.PurchaseFormVo;
import com.tsll.vo.PurchaseInfoVo;
import com.tsll.vo.Result;

/**
 * @author: Tian
 * @version: 1.0
 * @since: 1.0
 * @date: 2024/3/21/14:30
 */
public interface PurchaseInfoService {

    /**
     * 查询采购信息
     * @return
     */
    Result selectAll(Integer current, Integer pageSize, PurchaseInfoVo purchaseInfoVo);

    /**
     * 添加采购申请信息
     */
    int insertPurchaseInfo(PurchaseFormVo purchaseFormVo,Integer id);

    /**
     * 根据采购申请id删除信息
     * @param id
     * @return
     */
    int deletePurchaseInfoId(Integer id);


    /**
     * 查询未审核的信息
     * @param current
     * @param pageSize
     * @param purchaseInfoVo
     * @return
     */
    Result selectByExamineStatus(Integer current, Integer pageSize,PurchaseInfoVo purchaseInfoVo);


    /**
     * 根据id修改审核状态
     * @param id
     * @return
     */
    Result updateExamineStatus(Integer id,Integer examinestatus);

    /**
     * 驳回申请
     * @param purchaseInfo
     * @return
     */
    Result updateReject(PurchaseInfo purchaseInfo);


    /**
     * 购买图书
     * @param id
     * @return
     */
    Result purchaseBook(Integer id);
}

